package com.andy.war.script;

import com.andy.war.obj.battle.Army;
import com.andy.war.obj.battle.BattleContext;
import com.andy.war.util.Log;

public class AttackCmd extends ChainCmd{

	private Army enemy;
	
	public AttackCmd(Army enemy) {
		this.enemy = enemy;
	}

	@Override
	public void doMyCmd(BattleContext context,Army target) {
		if(enemy == null)return;
		Log.p("执行攻击命令...");
		target.getCurrenSkill().doSkill(target, enemy);
	}

	
}
